package mylibrary.annotation.useCase;

import java.util.List;

public class PasswordUtils {

	@UseCase(id=47, description="111")
	public boolean validatePassword(String password) {
		return password.matches("\\w*");
	}
	
	@UseCase(id=48)
	public String encryptPassword(String password) {
		return new StringBuilder(password).reverse().toString();
	}
	
	@UseCase(id=49, description="abc")
	public boolean checkForNewPassword(List prevPasswords, String password) {
		return !prevPasswords.contains(password);
	}
}
